﻿@page
@model ChooseCourse2.Pages.Course_E.CreateModel

@{
    ViewData["Title"] = "Create";
}

<h1>Create</h1>

<h4>Course</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form method="post">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="Course.Tag" class="control-label"></label>
                <select asp-for="Course.Tag">
                    <option value="1">选修</option>
                    <option value="2">必修</option>
                </select>
                <span asp-validation-for="Course.Tag" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Sort" class="control-label"></label>
                <input asp-for="Course.Sort" class="form-control" />
                <span asp-validation-for="Course.Sort" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Name" class="control-label"></label>
                <input asp-for="Course.Name" class="form-control" />
                <span asp-validation-for="Course.Name" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Main" class="control-label"></label>
                <input asp-for="Course.Main" class="form-control" />
                <span asp-validation-for="Course.Main" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Knowledge" class="control-label"></label>
                <input asp-for="Course.Knowledge" class="form-control" />
                <span asp-validation-for="Course.Knowledge" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Requirement" class="control-label"></label>
                <input asp-for="Course.Requirement" class="form-control" />
                <span asp-validation-for="Course.Requirement" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.HardWare" class="control-label"></label>
                <input asp-for="Course.HardWare" class="form-control" />
                <span asp-validation-for="Course.HardWare" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Exam" class="control-label"></label>
                <input asp-for="Course.Exam" class="form-control" />
                <span asp-validation-for="Course.Exam" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Style" class="control-label"></label>
                <input asp-for="Course.Style" class="form-control" />
                <span asp-validation-for="Course.Style" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Course.Level" class="control-label"></label>
                <input asp-for="Course.Level" class="form-control" />
                <span asp-validation-for="Course.Level" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>


@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
